<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>ECharts</title>
    <!-- 引入 echarts.js -->
    <script src="http://10.5.21.118/libjs/echarts.min.js"></script>
    <script src="http://10.5.21.118/libjs/jquery-1.11.1.min.js"></script>
	<script src="http://10.5.21.118/libjs/echarts-wordcloud.min.js"></script>
	<style>
     *{
        margin: 0;
        padding: 0;
    }
    div{
        width:100%;
        height: 100%;
        position: absolute;
	background-color: yelllow;
    }
	</style>

</head>
<body>
    <!-- 为ECharts准备一个具备大小（宽高）的Dom -->
    <div id="main"></div>
    <script type="text/javascript">
        var myChart = echarts.init(document.getElementById('main'));
		
		var option = {
                tooltip: {},
                series: [ {
  	            name: 'yunci',
                    type: 'wordCloud',                    
                    data: []
                } ]
            };
		window.onresize = myChart.resize;
		myChart.setOption(option);	
		// 异步加载数据
	$.get('word.json').done(function (data) {
		alert(data.data[0]);
		// 填入数据
		/*
	});
    </script>
</body>
</html>

